import {
  SET_SUBCOLUMN_NAV,
  SET_APP_TAB_BAR,
  SET_APP_VIEW_HEIGHT,
  SET_APP_WEB_NAME,
  SET_PRODUCT_LIST,
  SET_PRODUCT_VIEW,
  SET_BANNER,
  SET_ABOUT,
  SET_ACTIVE_COLUMN,SET_PRODUCT_COLUMN,SET_NEWS_COLUMN,SET_ABOUT_COLUMN,
  SET_SIDEBAR,
  SET_NEWS_LIST,
  SET_NEWS_VIEW,
  SET_MESSAGE_LIST,
  SET_MESSAGE_FORM,
  SET_FEEDBACK
} from './mutation-types.js'

const mutations = {
  [SET_APP_TAB_BAR](state, v) {
    state.app_tabBar = v
  },
  [SET_APP_VIEW_HEIGHT](state, v) {
    state.app_viewHeight = v
  },
  [SET_APP_WEB_NAME](state, v) {
    state.app_webName = v
  },
  [SET_SUBCOLUMN_NAV](state, v) {
    state.subcolumn_nav = v
  },
  [SET_BANNER](state, v) {
    state.banner = v
  },
  [SET_ACTIVE_COLUMN](state, v) {
    state.column.active = v
  },
  [SET_PRODUCT_COLUMN](state, v) {
    state.column.product = v
  },
  [SET_NEWS_COLUMN](state, v) {
    state.column.news = v
  },
  [SET_ABOUT_COLUMN](state, v) {
    state.column.about = v
  },
  [SET_ABOUT](state, v) {
    state.about = v
  },
  [SET_PRODUCT_LIST](state, v) {
    state.product_list = v
  },
  [SET_PRODUCT_VIEW](state, v) {
    state.product_view = v
  },
  [SET_NEWS_LIST](state, v) {
    state.news_list = v
  },
  [SET_NEWS_VIEW](state, v) {
    state.news_view = v
  },
  [SET_SIDEBAR](state, v) {
    state.sidebar = v
  },
  [SET_MESSAGE_LIST](state, v) {
    state.message_list = v
  },
  [SET_MESSAGE_FORM](state, v) {
    state.message_form = v
  },
  [SET_FEEDBACK](state, v) {
    state.feedback = v
  },
}
export default mutations
